This is a gallery page<br><br>
<?php echo $html->css('/assets/css/gallery.css');?>
<?php if(!empty($galleryItems)){?>
<h2><?php echo $galleryTitle;?></h2>

<?php $i = 0; 

 foreach($galleryItems as $galleryItem) { 
 	if($i%5==0) echo "<div class='clr' ></div>";
 	?>
 	<?php
		if($galleryItem['Asset']['name']!='')
	echo $asset->preview($galleryItem, null, array('img_class'=>'shadow'));
	?>
	<?php
	$i++;
 } ?>
<?php 
if(isset($this->passedArgs['page']))
{
	unset($this->passedArgs['page']);
}
?>

<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array('url'=>$this->passedArgs), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers(array('url'=>$this->passedArgs));?>
	<?php echo $paginator->next(__('next', true).' >>', array('url'=>$this->passedArgs), null, array('class'=>'disabled'));?>
</div>

<?php }else{?>
No Photo present<?php }?>